
// 参数实体
export interface ViewParamReq {
    id: number,
    pageIndex: number,
    pageSize: number,
    conditions?: Conditions
}

export interface Conditions {
    filters?: Filter[],
    keyWords?: String,
    order?: Order
}

export interface Order {
    field: String,
    val: OrderValue
}

enum OrderValue {
    asc, desc
}

export interface Filter {
    field: String,
    val: FilterVal[]
}

export interface FilterVal {
    op: String,
    val: Number
}

//===========================视图参数viewParam
export interface ViewParam {
    templateContainerList: ViewParamContainer[]
}

export interface ViewParamContainer {
    size: ViewParamContainerSize,
    name: String,
    fieldList: ViewParamField[]
}

export interface ViewParamContainerSize {
    width: number,
    height: number
}

export interface ViewParamField {
    viewPropertyName: String,
    metaPropertyId: number,
    propertyName: String,
    fieldKey: String,
    metaDataId: number,
    fieldTemplate: String,
    title: String
}